#!/usr/bin/python
# -*- coding: utf8 -*-
"""/
Very small graphical program for testing MobileDevice module.
"""


## importing my src modules and files
from sys import path as spath
from os import path as opath
spath.append(opath.abspath("src"))

from MobileDevice import MobileDevice
import Tkinter

def send_command():
    pass

app = Tkinter.Tk()
app.title("tiny MobileDevice GUI")

command_entry = Tkinter.Entry(app)


scrollbar_y = Tkinter.Scrollbar(app, orient = "vertical", width = "0.3c", relief = "flat")
text_field = Tkinter.Text(app, yscrollcommand = scrollbar_y.set, width = 80, relief = "flat")
scrollbar_y.config(command=text_field.yview)
send_button = Tkinter.Button(app, text = "Send Command", command = send_command)

send_button.pack(side = "bottom", fill = "x")
command_entry.pack(side = "bottom", fill = "x")
scrollbar_y.pack(side = "right", fill = "y")
text_field.pack()
app.mainloop()

kom = MobileDevice(serialP = "/dev/rfcomm2")
